import request from "@/utils/request";


export function page(ord,page,pageSize) {
    return request({
        url: '/admin/getOrder?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data:ord
    })
}
export function changeOrder(ord) {
    return request({
        url: '/admin/changeOrder',
        method: 'post',
        data:ord
    })
}

export function deleteOrder(id) {
    return request({
        url: '/admin/deleteOrder?id='+id,
        method: 'delete'
    })
}

export function addOrder(ord) {
    return request({
        url: '/admin/addOrder',
        method: 'post',
        data:ord
    })
}

export function ordDetail(id) {
    return request({
        url: `/getOrderDetail`,
        method: 'get',
        params: {
            id: id,
        },
    });
}

